<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
  <div th:replace="~{/fragment/header :: header}"></div>
  <div th:replace="~{/fragment/header :: header-css}"></div>
  <div th:replace="~{/fragment/header :: header-nav}"></div>
</head>
<body>
<form th:action="@{/parking/save}" th:object="${parking}" method="post">
  <input type="hidden" th:field="*{id}">

  <br>

  <div class="input-group mb-3">
    <span class="input-group-text">停车场名称</span>
    <input type="text" th:field="*{name}" class="form-control">
  </div>

  <div class="input-group mb-3">
    <span class="input-group-text">容积</span>
    <input type="number"  th:field="*{volumetric}" class="form-control">
  </div>

  <div class="form-group">
    <span class="input-group-text" for="pricingId">资费标准</span>
    <select class="form-group" name="pricingId" id="pricingId">
      <option th:each="pricing:${pricing}" th:value="${pricing.id}" th:text="${pricing.updateTime}"></option>
    </select>
  </div>


  <input class="btn btn-primary" type="submit" th:value="提交">
  <a th:href="@{/parking/list}" class="btn btn-secondary">返回</a>

</form>



<div th:replace="~{/fragment/header :: header-js}"></div>
<div th:replace="~{/fragment/footer :: footer}"></div>
</body>
</html>